//-------------------------------------------------------------------------------------------------------------------------
// Copyright (c) MeiZu Electronics Co., Ltd.  All rights reserved.
//-------------------------------------------------------------------------------------------------------------------------
//
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, 
// INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
//
// Module Name :	BackLightApi.h
//
// Abstract    :	BackLight Interface for App
//
// Environment :	miniOne
//
// Chris Chen	 @ MEIZU
// 2008/08/05/
// Version:	0.0
//
// History:
//
//-------------------------------------------------------------------------------------------------------------------------


#ifndef _BACKLIGHTAPI_H_
#define _BACKLIGHTAPI_H_

/***************************************************************************************
* Description: Set the state of backlight
* Input : 
*        bOpened: 0 - Disable backlight      1 - Enable backlight
*     
* Output : 0 - Fail, 1 - Success
* 
***************************************************************************************/
BOOL SetBackLightState(BOOL bOpened);

/***************************************************************************************
* Description: Set the state of Ambient Light Photo Sensor
* Input : 
*        bOpened: 0 - Close Lux Sensor      1 - Open Lux Sensor
*     
* Output : 0 - Fail, 1 - Success
* 
***************************************************************************************/
BOOL SetLuxSensorState(BOOL bOpened);
BOOL GetLuxSensorState(BOOL * bOpened);


BOOL SetBackLightLevel(DWORD level/*0-255*/);
BOOL GetBackLightLevel(DWORD * pLevel);

/***************************************************************************************
* Description: Get the value of System Idle Timeout
* Input : 
*        NULL
*     
* Output : -1: Fail, Other - Success,Specifies the time-out value,in milliseconds. 
* 
***************************************************************************************/
DWORD GetSystemIdleTimeout(VOID);

#endif//#ifndef _BACKLIGHTAPI_H_

